class Circle:
    def __init__(self, r):
        self._p = 3.14
        self._radius = r

    def get_area(self):
        return self._p * self._radius * self._radius

    def get_perimeter(self):
        return 2 * self._p * self._radius


def main():
    radius = float(input('请输入圆的半径：'))
    circle = Circle(radius)
    print('周长：', circle.get_perimeter())
    print('面积：', circle.get_area())


if __name__ == '__main__':
    main()
